package com.example.design.patterns.geekbang.结构型.结构类似的模式.装饰器模式;

public class BufferedInputStream extends InputStream {
    protected volatile InputStream in;

    protected BufferedInputStream(InputStream in) {
        this.in = in;
    }

    //...实现基于缓存的读数据接口...  
}